<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Cache-Control"  content="no-transform">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>商品</title>
    <link href="/statics/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="/statics/view/css/all.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body{
            background: #f1f1f1;
        }
    </style>
</head>
<body>
[#include "/common/header.ftl" /]

<div class="container" style="margin-bottom: 80px;">
    <!-- 海报-->
    <div class="row">
        <img src="${entity.banner}" class="mobile_img" style="width: 100%;"/>
    </div>
    <div class="row">
         <div class="product-info-header">
             <h4>${entity.name}</h4>
             <p>${entity.fullName}</p>
         </div>
        <ul class="list-group">
            <li class="list-group-item" style="color: #cc0000;font-size: 24px;">
            [#if entity.isVirtual==true]
                <div  style="text-align: center;">
                    <a class="btn btn-danger" href="/order/info?productId=${entity.id}">
                        申请名额
                    </a>
                </div>
            [#else]
                <a class="btn btn-danger" style="float: right;" href="/order/info?productId=${entity.id}">
                    [#if entity.price==0]0元抢购[#else]马上购买[/#if]
                </a>
                <i>¥</i>${entity.price}
            [/#if]

            </li>
        </ul>
    </div>
    <div class="row" style="background: #FFFFFF">
        <ul id="myTab" class="nav nav-tabs" role="tablist">
            <li role="presentation" class="active"><a href="#home" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="false">详情</a></li>
        </ul>
        <div id="myTabContent" class="tab-content">
            <div role="tabpanel" class="tab-pane fade active in" id="home" aria-labelledby="home-tab" style="padding: 10px;">
                ${entity.introduction}
            </div>
        </div>
    </div>

</div>
<script type="text/javascript" src="/statics/jquery/jquery.js"></script>
<script type="text/javascript" src="/statics/view/js/common.js"></script>
<script type="text/javascript" src="/statics/layer/layer.js"></script>
<script type="application/javascript">
    $(function(){
        $('#myTab a').click(function (e) {
            e.preventDefault()
            $(this).tab('show')
        });
    });
</script>
</body>
</html>